<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <ul id="uls">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
        <li>10</li>
    </ul>
    <script>
        //享元模式   优化程序性能
    var uls=document.getElementById("uls");
    uls.onclick=function(e){
      var e=window.event||e;
      if(e.target.nodeName=="LI"){
          alert("点击");
      }
    }
    </script>
</body>
</html>